#include "Tracer.h"

/*Tracer::Tracer(void)
{
}

Tracer::~Tracer(void)
{
}*/

FILE * Tracer::f = NULL;

#ifndef RELEASE_MODE
void Tracer::initTracer()
{
	fopen_s(&f, "trace_log.txt", "w");
	fclose(f);
}

void Tracer::trace(char *format, ...)
//void Tracer::trace(char *s)
{
	va_list args;

	fopen_s(&f, "trace_log.txt", "a");
	//fprintf(f, "%s\n", s);
	va_start (args, format);
	vfprintf (f, format, args);
	fclose(f);
	va_end (args);
}
#endif
